Optimal. Leaf size=62 \[ -\frac{2 a (3 A+B) \cos (e+f x)}{3 f \sqrt{a \sin (e+f x)+a}}-\frac{2 B \cos (e+f x) \sqrt{a \sin (e+f x)+a}}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0576309, antiderivative size = 62, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {2751, 2646} \[ -\frac{2 a (3 A+B) \cos (e+f x)}{3 f \sqrt{a \sin (e+f x)+a}}-\frac{2 B \cos (e+f x) \sqrt{a \sin (e+f x)+a}}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2751
Rule 2646
Rubi steps
\begin{align*} \int \sqrt{a+a \sin (e+f x)} (A+B \sin (e+f x)) \, dx &=-\frac{2 B \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{3 f}+\frac{1}{3} (3 A+B) \int \sqrt{a+a \sin (e+f x)} \, dx\\ &=-\frac{2 a (3 A+B) \cos (e+f x)}{3 f \sqrt{a+a \sin (e+f x)}}-\frac{2 B \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{3 f}\\ \end{align*}
Mathematica [A] time = 0.124571, size = 82, normalized size = 1.32 \[ -\frac{2 \sqrt{a (\sin (e+f x)+1)} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) (3 A+B \sin (e+f x)+2 B)}{3 f \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.926, size = 58, normalized size = 0.9 \begin{align*}{\frac{ \left ( 2+2\,\sin \left ( fx+e \right ) \right ) a \left ( -1+\sin \left ( fx+e \right ) \right ) \left ( B\sin \left ( fx+e \right ) +3\,A+2\,B \right ) }{3\,f\cos \left ( fx+e \right ) }{\frac{1}{\sqrt{a+a\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.88627, size = 225, normalized size = 3.63 \begin{align*} -\frac{2 \,{\left (B \cos \left (f x + e\right )^{2} +{\left (3 \, A + 2 \, B\right )} \cos \left (f x + e\right ) +{\left (B \cos \left (f x + e\right ) - 3 \, A - B\right )} \sin \left (f x + e\right ) + 3 \, A + B\right )} \sqrt{a \sin \left (f x + e\right ) + a}}{3 \,{\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\sin{\left (e + f x \right )} + 1\right )} \left (A + B \sin{\left (e + f x \right )}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]